<?php

  class Phylo extends Parser
  {

      private static 
              $instance = null;
      
      protected 
              $infile   = null;

      public function __construct($infile = '')
      {
          if (!$infile)
          {
              throw new InvalidArgumentException('You must enter the input filename');
          }

          foreach (explode(',', $infile) as $file)
          {
              $this->infile = new SplFileObject($file, 'rb');
              parent::__construct();
          }
      }

      public static function get($infile = '')
      {
          if (self::$instance === null)
          {
              self::$instance = new self($infile);
          }
          return self::$instance;
      }

  }

?>
